﻿using System;
using System.Text;
using System.Web.UI.WebControls;

namespace QuickDev.Model
{
    public class Enumerations
    {
        public static ListItemCollection GetCollectionStatus( Type enumType )
        {
            ListItemCollection listItemCollection = new ListItemCollection();
            foreach ( int i in Enum.GetValues( enumType ) )
            {
                listItemCollection.Add( new ListItem( Enum.GetName( enumType, i ), i.ToString() ) );
            }

            return listItemCollection;
        }
    }

    public enum MessageStatuses : int
    {
        All = 0,
        Successful = 1,
        Failed = 2
    }

    public enum CollectionsStatus : int
    {
        All = 0,
        Active = 1
    }

    public enum RoleInPermissionStatus : int
    {
        GetPermissionsInRole = 0,
        GetPermissionsNotInRole = 1
    }

    public enum UserInRoleStatus : int
    {
        GetRolesInUser = 0,
        GetRolesNotInUser = 1
    }

    public enum MoveOperation : int
    {
        up = 1,
        down = 2
    }

    public enum CreditCardType : int
    {
        Null = 0,
        MasterCard = 1,
        VISA = 2,
        Amex = 3,
        Discover = 4,
        PaypalExpress = 100,
        GoogleCheckout = 200
    }

    public enum ProviderType
    {
        PaymentProvider = 1,
        TaxProvider = 2,
        ShippingProvider = 3,
        CouponProvider = 4,

        SeoProvider = 10,

        ImmediateMessengerProvider = 20,

        DemographicsProvider = 30,

        EmolumentProvider = 40,
        AttendanceProvider = 41,

        ContentProvider = 100,

        CustomerTemplateProvider = 200
    }

    public enum CustomerTypes
    {
        All = 0,
        Visitation = 1,
        Call_In = 2,
        Call_Out = 3
    }

    public enum CustomerStatuses
    {
        All = 0,
        New = 1,
        OpenClass = 2,
        SignUp = 3,
        ChooseClass = 4,
        Student = 5,
        Not_SignUp = 6
    }
}
